import React from 'react';
import Header from './head';
import styles from './index.less';

class LayoutPage extends React.Component {
  layout = () => {
    return (
      <React.Fragment>
        <div className={styles.header}>
          <Header />
        </div>
        <div className={styles.content}>
          {this.props.children}
        </div>

      </React.Fragment>
    );
  };

  render() {
    const _this = this;
    return <React.Fragment>{_this.layout()}</React.Fragment>;
  }
}

export default LayoutPage;
